﻿import request from '/@/utils/request';
enum Api {
	AddBaseCode = '/api/baseCode/add',
	DeleteBaseCode = '/api/baseCode/delete',
	UpdateBaseCode = '/api/baseCode/update',
	PageBaseCode = '/api/baseCode/page',
	DetailBaseCode = '/api/baseCode/detail',
	ListBaseCode = '/api/baseCode/list',
}

// 增加36码对应旧码表
export const addBaseCode = (params?: any) =>
	request({
		url: Api.AddBaseCode,
		method: 'post',
		data: params,
	});

// 删除36码对应旧码表
export const deleteBaseCode = (params?: any) =>
	request({
		url: Api.DeleteBaseCode,
		method: 'post',
		data: params,
	});

// 编辑36码对应旧码表
export const updateBaseCode = (params?: any) =>
	request({
		url: Api.UpdateBaseCode,
		method: 'post',
		data: params,
	});

// 分页查询36码对应旧码表
export const pageBaseCode = (params?: any) =>
	request({
		url: Api.PageBaseCode,
		method: 'post',
		data: params,
	});

// 详情36码对应旧码表
export const detailBaseCode = (id: any) =>
	request({
		url: Api.DetailBaseCode,
		method: 'get',
		data: { id },
	});

// 详情36码对应旧码表
export const listBaseCode = (params?: any) =>
	request({
		url: Api.ListBaseCode,
		method: 'post',
		data: { params },
	});
